package 泛型;


public class TupleTest {
	static TwoTuple<String, Integer> f() {
		TwoTuple<String, Integer> hello = new TwoTuple<>("hello", 47);
		return hello;
	}

	public static  ThreeTuple<String, Integer, Character> h() {
		ThreeTuple<String, Integer, Character> threeTuple = new ThreeTuple<>("string",1,'c');
		return threeTuple;
	}
	public static <A,B,C>  ThreeTuple<A,B,C> h2(A a,B b,C c) {
		return new ThreeTuple<>(a,b,c);
	}

	public static void main(String[] args) {
		TwoTuple<String, Integer> f = f();
		System.out.println(f.first);
		System.out.println(f.second);
		System.out.println(f);
	}
}
